"""

缺省值  有缺醒值的参数需要放在参数后面
可变参数


"""
def chengfa(a,b=2):
    return a*b
#def chengfa(a,b,c):
  #  return a*b
#def chengfa(a,b，c，d):
   # return a*b

def chengfa2(*args):
    result =1
    for i in args:
        result*=i
    return  result
def login(**keargs):
    if keargs['username']=="admin":
     if keargs['password']=="admin":
         return True
if __name__ == '__main__':
    print(chengfa(10,2))
    print(chengfa(100))
    print(chengfa2(1,2,3,4,5,6))
    print(login(username="admin",password="admin"))